package cn.edu.web.dao.mapper;

import cn.edu.web.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: shineZhao
 * @Date: 2021/5/9 16:48
 * @Description:
 */
@Mapper
public interface StaffMapper {

    @Select("select * from staff")
    List<Staff> findAll();

    @Select("select * from staff where username = #{username} and password = #{password}")
    Staff login(Staff staff);
}
